import { request, RequestEnum } from "@/utils/request.js"

// 通过城市代码获取该城市的所有地区
export const reqAreaByCityCode = cityCode => request(`/location/area/${cityCode}`, RequestEnum.GET)

// 通过省份代码获取所有该省份的所有城市
export const reqCityByProvinceCode = provinceCode => request(`/location/city/${provinceCode}`, RequestEnum.GET)

// 获取所有省份
export const reqProvince = () => request(`/location/province`, RequestEnum.GET)